import 'package:dmz/business/home/widgets/set_moto_widgets.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../../../base/pageWidget/base_stateful_widget.dart';
import '../../../base/widget/defult_widget.dart';
import '../controller/set_purchase_controller.dart';

class SetPaymentPage extends BaseStatefulWidget<SetPurchaseController> {
  const SetPaymentPage({super.key});

  @override
  bool delectControll() => false;

  @override
  String titleString() => '付款'.tr;

  @override
  List<Widget>? appBarActionWidget(BuildContext context) {
    return [
      DefaultText('支付'.tr, 28.sp, textColor: const Color(0xFF23C565))
          .paddingOnly(right: 32.sp)
          .addGestureDetector(controller.didPrepay)
    ];
  }

  @override
  Widget buildContent(BuildContext context) {
    return SetMotoWidgets.paymentWidget(
        controller.pageDatas[controller.selecIndex.value]);
  }
}
